package com.lais.record.user.exception;

import com.lais.record.common.exception.RecordException;
import com.lais.record.user.constant.UserEnum;
import lombok.Getter;

/**
 * @Author: luowen
 * @Description:
 * @Date: Create in 15:48 2019/11/30
 */
@Getter
public class UserException extends RecordException {

    public UserException(String code, String message) {
        super(code, message);
    }
    public UserException(UserEnum userEnum){
        this.code = userEnum.getCode();
        this.message = userEnum.getMessage();
    }
    private String code;

    private String message;
}
